package com.ruoyi.mespro.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 疵点详情对象 shaft_defect_detail
 *
 * @author JunXiang
 * @date 2022-08-06
 */
public class ShaftDefectDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 品种规格 */
    @Excel(name = "品种规格")
    private String construction;

    /** 轴号 */
    @Excel(name = "轴号")
    private String shaftcode;

    /** 缸号 */
    @Excel(name = "缸号")
    private Integer jarno;

    @Excel(name = "机台")
    private String maccode;

    /** 疵点名称 */
    @Excel(name = "疵点名称")
    private String defectname;

    /** 位置 */
    @Excel(name = "位置")
    private Double location;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 数量 */
    @Excel(name = "数量")
    private Integer amount;

    /** 班次 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "班次", width = 30, dateFormat = "yyyy-MM-dd")
    private Date shaftdate;

    /** 班别 */
    @Excel(name = "班别")
    private Integer shafttype;

    public String getMaccode() {
        return maccode;
    }

    public void setMaccode(String maccode) {
        this.maccode = maccode;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setConstruction(String construction)
    {
        this.construction = construction;
    }

    public String getConstruction()
    {
        return construction;
    }
    public void setShaftcode(String shaftcode)
    {
        this.shaftcode = shaftcode;
    }

    public String getShaftcode()
    {
        return shaftcode;
    }
    public void setJarno(Integer jarno)
    {
        this.jarno = jarno;
    }

    public Integer getJarno()
    {
        return jarno;
    }
    public void setDefectname(String defectname)
    {
        this.defectname = defectname;
    }

    public String getDefectname()
    {
        return defectname;
    }
    public void setLocation(Double location)
    {
        this.location = location;
    }

    public Double getLocation()
    {
        return location;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setAmount(Integer amount)
    {
        this.amount = amount;
    }

    public Integer getAmount()
    {
        return amount;
    }
    public void setShaftdate(Date shaftdate)
    {
        this.shaftdate = shaftdate;
    }

    public Date getShaftdate()
    {
        return shaftdate;
    }
    public void setShafttype(Integer shafttype)
    {
        this.shafttype = shafttype;
    }

    public Integer getShafttype()
    {
        return shafttype;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("construction", getConstruction())
            .append("shaftcode", getShaftcode())
            .append("jarno", getJarno())
            .append("defectname", getDefectname())
            .append("location", getLocation())
            .append("description", getDescription())
            .append("amount", getAmount())
            .append("shaftdate", getShaftdate())
            .append("shafttype", getShafttype())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
